package homework.james.xiao.util;

import homework.james.xiao.bean.Dish;
import homework.james.xiao.bean.Menu;
import homework.james.xiao.bean.Order;
import homework.james.xiao.bean.Orders;
import homework.james.xiao.bean.OrdersHistory;
import homework.james.xiao.bean.User;

import com.thoughtworks.xstream.XStream;

public class Util {
	/**
	 * 用作标示向buffer中写入信息的结束行
	 */
	public static final String END = "$end$"; 
	public static void alias(XStream xstream) {
		xstream.alias("dish", Dish.class);
		xstream.alias("menu", Menu.class);
		xstream.alias("orders", Orders.class);
		xstream.alias("order", Order.class);
		xstream.alias("user", User.class);
		xstream.alias("ordersHistory", OrdersHistory.class);
	}
}
